package com.woniuxy.hrp.mapper;

import com.woniuxy.hrp.entity.Perm;
import com.woniuxy.hrp.entity.PermMid;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @program: hrph
 * @InterfaceName PermMidMapper
 * @description:权限人员中间表Mapper
 * @author: WY
 **/
public interface PermMidMapper {

    //增加
    @Insert("insert into hrp_perm_mid values (null,#{permid},null,#{adminid})")
    void insert(@Param("permid")int permid, @Param("adminid")int adminid);

    //删除(物理)
    @Delete("delete from hrp_perm_mid where admin_id=#{adminid}")
    void delete(int adminid);


}
